home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
SORT
/
TEST
/
SORTTST.C
next >
Wrap
C/C++ Source or Header
|
1996-07-03
|
231b
|
13 lines
char *list[6] = { "Z","U","B","W","F","A" };
int compare(char **a,char **b)
{
return(strcmp(*a,*b));
}
void main(void)
{
int i;
qsort(list,6,sizeof(char *),compare);
for (i=0; i <6; i++)
printf("%s\n",list[i]);
}